﻿<UserControl x:Class="TfsWorkbench.TaskBoardUI.StateCollectionView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:DragHelpers="clr-namespace:TfsWorkbench.UIElements.DragHelpers;assembly=TfsWorkbench.UIElements"
    xmlns:Constants="clr-namespace:TfsWorkbench.TaskBoardUI.Constants"    
    MinWidth="{x:Static Constants:Numbers.MinContainerWidth}"
    Name="PART_UserControl"
    >
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Resources\CellDataTemplates.xaml" />
                <ResourceDictionary Source="Resources\DragListViewTemplates.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
    
    <DragHelpers:DragListView 
        ItemsSource="{Binding ElementName=PART_UserControl, Path=StateCollection}" 
        ItemTemplate="{StaticResource WorkbenchItemTemplate}"
        State="{Binding ElementName=PART_UserControl, Path=StateCollection.State}"
		Style="{StaticResource DragListViewStyle}"
        >
    </DragHelpers:DragListView>
</UserControl>
